package org.jeecg.modules.demo.config;

import com.github.wxpay.sdk.WXPayConfig;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.jeecg.modules.demo.weixin.dto.PayValues;

import java.io.InputStream;

/**
 * @Author jeecg-boot
 * @Date 2023/10/30 11:12
 * @Description
 */
@Data
@AllArgsConstructor
public class MyConfig implements WXPayConfig {

    private PayValues payValues;

    @Override
    public String getAppID() {
        return payValues.getAppid();
    }

    @Override
    public String getMchID() {
        return payValues.getMchId();
    }

    @Override
    public String getKey() {
        return payValues.getKey();
    }

    @Override
    public InputStream getCertStream() {
        return null;
    }

    @Override
    public int getHttpConnectTimeoutMs() {
        return 0;
    }

    @Override
    public int getHttpReadTimeoutMs() {
        return 0;
    }
}
